Multi-wire open-drain link with data symbol transition based clocking

ABSTRACT

A method, an apparatus, and a computer program product are described. The apparatus generates a receive clock signal for receiving data from a multi-wire open-drain link by determining a transition in a signal received from the multi-wire open-drain link, generating a clock pulse responsive to the transition, delaying the clock pulse by a preconfigured first interval if the transition is in a first direction, and delaying the clock by a preconfigured second interval if the transition is in a second direction. The preconfigured first and/or second intervals are configured based on a rise time and/or a fall time associated with the communication interface and may be calibrated by measuring respective delays associated with clock pulses generated for first and second calibration transitions.

CLAIM OF PRIORITY UNDER 35 U.S.C. §119

The present Application for Patent is a continuation application of U.S. patent application Ser. No. 14/220,056 entitled “Multi-Wire Open-Drain Link With Data Symbol Transition Based Clocking,” filed Mar. 19, 2014, and which, claims priority to U.S. Provisional Application No. 61/803,684 entitled “Multi-Wire Open-Drain Link With Data Symbol Transition Based Clocking,” filed Mar. 20, 2013, and U.S. Provisional Application No. 61/846,977 entitled “Multi-Wire Open-Drain Link With Data Symbol Transition Based Clocking,” filed Jul. 16, 2013, which applications are assigned to the assignee hereof and hereby expressly incorporated by reference herein.

FIELD

The present disclosure relates generally to data communications, and more particularly, clock recovery from symbol transitioning over multi-wire open-drain links.

BACKGROUND

Most single-ended source synchronous open-drain communication interfaces, such as I2C, use a dedicated clock or strobe signal line to send cycle timing information from a transmitter to a receiver. Certain disadvantages are associated with these signaling systems, including a requirement for one extra signal dedicated for clock information. Maximum data rate is often limited when single-rate signaling is used such that one data symbol sent for each full clock period consisting of a clock high and clock low cycle, whereby the maximum data rate is often limited by a maximum allowed frequency of the system clock rather than the maximum allowed frequency of the data line. The maximum data rate is also often limited by skew between the clock and data that can be hard to control for optimal signaling.

In some instances, to avoid the use of a dedicated clock line, a clock may be embedded by guaranteeing symbol-to-symbol transitions within transmitted data symbols. Thus, a receiver device may extract clock information from the detection of symbol-to-symbol transitions. However, reliable or consistent detection of transitions by a receiver's logic may be affected by rise times and fall times of the transmitted signal.

Unlike complementary metal-oxide-semiconductor (CMOS) push-pull drivers, open-drain type drivers have a signal rise time that is significantly longer than a signal fall time. This difference in rise and fall times for open-drain type drivers poses a problem for clock recovery from transmitted data symbols as some transitions may be missed.

Therefore, a solution is needed that permits extracting a clock from transmitted data symbols without slowing down the data transmission rate.

SUMMARY

Embodiments disclosed herein provide systems, methods and apparatus for communicating between two devices that may be collocated in an electronic apparatus and communicatively coupled through one or more data links.

According to one feature, a method for generating a clock signal comprises determining a transition in a signal received from a communication interface, generating a clock pulse responsive to the transition, delaying the clock pulse by a preconfigured first interval if the transition is in a first direction, and delaying the clock pulse by a preconfigured second interval if the transition is in a second direction. For instance, a transition is a rising transition (low-to-high), the clock pulse may be delayed for the first interval. If the transition is a falling transition (high-to-low), the clock pulse may be delayed for the first interval plus the second interval (or, alternatively, the second interval may simply be longer than the first interval). Delaying the clock pulse may restart if a different clock pulse is received and the delay of the clock pulse has not been completed. The preconfigured first and/or second intervals may be configured based on a rise time and/or a fall time associated with the communication interface. The rise time may correspond to a rise time associated with an open-drain transistor. The preconfigured first and/or second intervals may be selected to cause the clock pulse to occur when a symbol is transmitted on the communication interface, thereby permitting the symbol to be reliably sampled. In one example, the fall time of a second transition plus the first and second intervals (first and second delays) may be selected to be substantially equal to the rise time of a first transition plus the preconfigured first interval (e.g., first delay). For instance, the second interval may be selected to match a delay (difference between rise time and fall time) in detecting a transition attributed to the rise time. The preconfigured first interval may be selected to match a delay in detecting the transition attributed to the fall time. The clock pulse may be aggregated with at least one additional clock pulse generated in response to the transition.

The preconfigured first and/or second intervals may be calibrated. For instance, the preconfigured first and/or second intervals may be calibrated by providing first and second calibration transitions that are in different directions from one another, measuring respective delays associated with clock pulses generated for the first and second calibration transitions, and modifying the preconfigured first and/or second intervals to minimize a difference in the respective delays. For example, the preconfigured first interval may be modified or set by adjusting a programmed delay of a first delay circuit based on a measured delay associated with a clock pulse generated after the first calibration transition. The preconfigured second interval may be modified or set by adjusting a programmed delay of a second delay circuit based on a measured delay associated with a clock pulse generated after the second calibration transition. The respective delays may be measured using a timer that reflects a desired delay associated with clock pulses generated for either calibration transition.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts a single-ended signaling system.

FIG. 2 is a block diagram of a transmitter device with open-drain drivers and in which a clock is integrated into symbol transitions.

FIG. 3 is a block diagram of a receiver device with CMOS receivers and with integrated clock recovery.

FIG. 4 illustrates the conversion from bits to symbol transition numbers at a transmitter and then from symbol transition numbers to bits at a receiver.

FIG. 5 illustrates the conversion between sequential symbols and symbol transition numbers.

FIG. 6 illustrates timing of signals associated with open-drain transistors.

FIG. 7 illustrates an example of a clock recovery circuit used in a CDR circuit and a corresponding timing diagram.

FIG. 8 is a diagram that illustrates timing associated with open-drain transistors as described in relation to the clock recovery circuit depicted in FIG. 7.

FIG. 9 illustrates timing issues associated with receivers of multi-wire open-drain link with symbol transition based clocking.

FIG. 10 illustrates a timing diagram in which the rise time delay of FIG. 9 may be accommodated by decreasing a frequency of operation of the data link of FIG. 1.

FIG. 11 is a diagram illustrating the use of a plurality of CDR circuits to generate reliable timing in accordance with certain aspects.

FIG. 12 is a timing diagram illustrating operation of a clock data and recovery circuit configured used with receivers of multi-wire open-drain link with symbol transition based clocking.

FIG. 13 is a simplified block schematic illustrating an example of a programmable delay circuit that may be used to implement one or more of delay elements within a CDR circuit.

FIG. 14 illustrates the receive clock aggregation and sampling circuit of FIG. 11 along with a corresponding timing diagram.

FIG. 15 illustrates a method for calibrating the timing of CDR circuits and an associated circuit used for calibration of one or more of delay circuits of FIG. 11.

FIG. 16 illustrates logic circuits used to perform the calibration of one or more of delay circuits using the method of FIG. 15.

FIG. 17 includes a timing diagram illustrating an implementation of a calibration circuit for calibrating the delay circuits of FIG. 11.

FIG. 18 is a diagram illustrating an example of a hardware implementation for an apparatus that employs a clock extraction circuit.

FIG. 19 illustrates a method for reliably generating a clock signal from symbol transitions.

DETAILED DESCRIPTION

Various aspects are now described with reference to the drawings. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more aspects. It may be evident, however, that such aspect(s) may be practiced without these specific details.

Overview

A method and device are provided for generating a clock signal from received symbol transitions. A signal is received over a multi-wire open-drain link. Transitions within the received signal are determined from the negative-to-positive (i.e., low-to-high) transitions and positive to negative (i.e., high-to-low) transitions of symbols within the signal. A clock pulse is generated responsive to the transition. The clock pulse is selectively delayed by a preconfigured first interval (e.g., first delay) if the transition is in a first direction (e.g., rising transition). The clock pulse may be further selectively delayed by a preconfigured second interval (second delay) if the transition is in a second direction (falling transition). For instance, the first direction may be from low-to-high, and the second direction is from high-to-low. The preconfigured second interval may be configured based on a rise time and/or a fall time associated with the communication interface and may be calibrated by measuring respective delays associated with clock pulses generated for first and second calibration transitions.

Exemplary Operating Environment(s)

FIG. 1 illustrates a single-ended signaling system. In single-ended signaling, one wire carries a varying voltage that represents the signal, while another wire may be connected to a reference voltage (e.g., ground). A transmitter device 102 may include a plurality of single-ended open-drain (transistor) drivers 108, each driver 108 coupled to a single wire/conductor 106 a, 106 b, 106 c, and/or 106 d. A receiver device 104 may include one or more single-ended CMOS (transistor) receivers 110, each single-ended receiver 110 coupled to a single wire/conductor 106 a, 106 b, 106 c, and/or 106 d. The transmitter device 102 receives input bits 118, encodes them (at encoder 122) into single-ended signals, and transmits them to the receiver 104 as single-ended signals through the single-ended drivers 108 via each wire/conductor 106 a, 106 b, 106 c, and/or 106 d. The receiver device 104 receives the single-ended signals via each wire/conductor 106 a, 106 b, 106 c, and/or 106 d through the single-ended receivers 110, decodes the single-ended signals (at decoder 124), and provides output bits 120. In this single-ended system, the decoder 124 may include a clock and data recovery (CDR) such that a clock signal is extracted from one or more received single-ended signals.

FIG. 2 is a block diagram of a transmitter device 200 with open-drain drivers in which a clock is integrated into symbol transitions. The transmitter device 200 may include an encoder 203 comprising a bits-to-symbol transition numbers converter 202, a symbol transition numbers converter-to-sequential symbol number converter 204, and clocked registers 206 and 208. Input data is converted by the bits-to-symbol transition numbers converter 202 from a binary number or stream (bits) to m symbol transition numbers, (m×T). The symbol transition number-to-sequential symbol number converter 204 may convert symbol transition numbers (T) to a sequential symbol number (Cs). The sequential symbol number (Cs) may be clocked through an output register 206 to a set of buffers 210 that control a plurality of line drivers 212. In one example, line drivers 212 may be implemented using open-drain transistors that are pulled up by resistances 216. A delay register 208 serves to hold a previous sequential symbol number (Ps). The symbol transition number-to-sequential symbol number converter 204 uses a current symbol transition number T and a previous sequential symbol number (Ps) to select the next current sequential number (Cs).

FIG. 3 is a block diagram of a receiver device 350 with CMOS receivers and with integrated clock recovery. The receiver device 350 may include a plurality of complementary metal-oxide-semiconductor (CMOS) receive buffers 362 that receive signals from n wires 364.

The receiver device 350 may include a decoder 303 comprising a clocked hold register 354, a sequential symbol number-to-symbol transition number converter 356, and a symbol transition number-to-bits converter 358. The received signals may be provided to a clock and data recovery (CDR) circuit 352 that recovers a receive clock (RXCLK) from transitions of an input symbol (SI) received over wires 364. The sequential symbol number-to-symbol transition number converter 356 converts a current symbol Cs based on a previous symbol Ps (which is held at the hold register) to provide a symbol transition number T. The hold register 354 is clocked by the receive clock (RXCLK) provided by the CDR circuit 352. The symbol transition number-to-bits converter 358, triggered by the receive clock (RXCLK), then converts m symbol transition numbers (m×T) to a binary number. A calibration circuit 366 may serve to generate delay calibration control signals for the CDR circuit 352 and CMOS receive buffers 362.

Exemplary Conversion between Bits and Symbol Transition Numbers

FIG. 4 illustrates the conversion from bits to symbol transition numbers at a transmitter 402 and then from symbol transition numbers to bits at a receiver 404. The transmitter 402 feeds binary information, Bits, into a “Bits to m×T” converter 406 to generate m symbol transition numbers, T0 to Tm−1. The receiver 404 receives m symbol transition numbers, T0 to Tm−1, which are fed into a “m×T to Bits” converter 408 to retrieve the binary information, Bits. If there are r possible symbol transition states per one T, T0 to Tm−1, m transitions can send r^(m) different states.

In one example, it may be assumed the possible symbol transition per one T, r is 10. Lets also assume the number of symbols in a group, m is 3, such that the symbol transition number is T2, T1, T0, where Ti: 0, 1, 2, . . . , 9. Thus, each T can have 10 different states. Thus, the symbol transition number for T2, T1, T0 may be for example, a 3-digit number, such as T2=3, T1=9, T0=1 (or the decimal number 391). In this manner a sequence of bits may be converted into a plurality of symbol transition numbers T and vice versa.

Exemplary Conversion between Sequential Symbols and Symbol Transition Number

FIG. 5 illustrates the conversion between sequential symbols and transition numbers. This conversion maps each transition from a previous sequential symbol number (Ps) to a current sequential symbol (Cs) to a transition number (T). At the transmitter device, the transition numbers are being converted to sequential symbols. Because of the relative conversion scheme being used, the transition numbers guarantee that no two consecutive sequential symbols 504 will be the same.

In one example for a 2-wire system, there are four (4) raw symbols assigned to 4 sequential symbol S0, S1, S2, and S3. For the four (4) sequential symbols, Table 502 illustrates how a current sequential symbol (Cs) may be assigned based on a previous sequential symbol (Ps) and a temporary transition number T_(tmp) based upon the current transition number (T).

In this example, the transition number C_(s) may be assigned according to: Cs=Ps+T _(tmp)

where T_(tmp)=T==0?3: T. Alternatively stated, if T is equal to zero, T_(tmp) becomes 3, else T_(tmp) becomes equal to T. And once T_(tmp) is calculated, Cs is set to Ps plus T_(tmp). Moreover, on the receiver end, the logic is reversed to recover T, T_(tmp)=C_(s)+4−P_(s) and T=T_(tmp)==3?0: T_(tmp).

Exemplary Open-Drain Transistor Timing

As previously noted, the transmitter device 200 of FIG. 2 and the receiver device 350 of FIG. 3 use open-drain transistors for their drivers and receivers.

FIG. 6 illustrates exemplary timing of signals associated with open-drain transistors. In one example, a serial clock (SCL) driver in an Inter-Integrated Circuit (I2C) interface may comprise an open-drain transistor. When transmitting, a master device 602 may switch an open drain transistor 608 between high impedance and ground (or a voltage rail). A resistance 606 may be provided to pull the output to a desired voltage level when the open-drain transistor 608 is in high impedance state. The rate of change of the signal between voltages on the transmission line corresponding to logic 0 and logic 1 is governed by the RC constant associated with the resistance 606 and line capacitance 610 when the transistor 608 is in a high impedance state. In this example, it can be appreciated that the rise time t_(r) 632 for the open-drain transistor 608 is significantly longer than its fall time t_(f) 630. A characteristic timing diagram 620 illustrates that a low-to-high transition 624 (e.g., rising edges) are significantly more gradual (e.g., longer) for transitions than a high-to-low transition 622 from the logic 1 voltage to the logic 0 voltage (e.g., falling edge). A consequence of the difference in high-to-low transitions 622 (fall time) versus low-to-high transitions 624 (rise time) is that detection logic may ascertain a low-to-high transition at a time 628 that is significantly longer than a time to ascertain a high-to-low transition. That is, the time delay from the beginning of the low-to-high transition 626 to the time 628 at which the high state is ascertained is significantly greater or longer than the time delay for ascertaining a low state in a high-to-low transition 622. This has the tendency of slowing down transfer rates.

FIG. 7 illustrates an example of a clock recovery circuit 700 used in a CDR circuit and a corresponding timing diagram 750. The clock recovery circuit 700 can extract a receive clock (RXCLK) 712 from one or more signal on the wires 703. The clock recovery circuit 700 may detect a transition in symbols represented by the state of the input wires 703 and generates a pulse that is aligned relative to the transition in order to permit sampling of the current received symbol.

The clock recovery circuit 700 detects symbol transitions using a comparator 702, which compares current symbol (Cs) with the prior symbol (Ps) maintained by a hold register 714 and produces an output (NE) indicating whether a difference is detected. The NE signal is generated when the symbol is not equal to a registered copy of the symbol. The output of the comparator 702 sets a set-reset register 704 to record the transition. The output of the set-reset register 704 is gated with an inverted delayed version of itself at gate 706, to produce a one-shot pulse (NE1SHOT). The width (P) of the NE1SHOT pulse is determined by a flip-flop based circuit 708 (which may operate as a programmable or configurable delay). The NE1SHOT pulse may be further delayed by a time determined by a Delay S (the second delay device 710) to provide a resultant clock IRXCLK 720 that enables reliable sampling of the current symbol. The clock IRXCLK 720 may be used to clock symbols into the hold register 714 and to clear the set-reset register 704 that records occurrence of a transition. A second flip flop circuit 713 may serve to hold (delay) the clock IRXCLK 720 and generate a second clock RXCLK 712 that may serve to sample received symbols.

The clock recovery circuit 700 assumes that at least one transition occurs at every symbol interval. However, transitions at one symbol interval may comprise only positive transitions or only negative transitions. This can cause some asymmetric timing when open-drain transistor drivers are used on wires 703.

In a more detailed example, the clock recovery circuit 700 includes a comparator 702, a set-reset register 704, a first analog or digital delay device (e.g., a flip-flop based circuit 708), a one-shot logic gate 706, a second analog or digital delay device (i.e., the second delay device 710), and a register 714. The comparator 702 may compare a first instance of the first state transition signal (SI) and a level-latched instance of the first state transition signal (S) and outputs a comparison signal (NE). The set-reset register 704 may receive the comparison signal (NE) from the comparator 702 and outputs a filtered version of the comparison signal (NEFLT). The first delay device (e.g., a flip-flop based circuit 708) may receive the filtered version of the comparison signal (NEFLT) and outputs a delayed instance of the filtered version of the comparison signal (NEDEL). The one-shot logic gate 706 may receive the filtered comparison signal (NEFLT) and the delayed instance of the filtered version of the comparison signal (NEDEL) and outputs a second filtered version of the comparison signal (NE1SHOT). The second delay device 710 may receive the second filtered version of the comparison signal (NE1SHOT) and outputs a delayed instance of the first state transition signal (IRXCLK) 720. The set-reset register 704 may be reset based on the delayed instance of the first state transition signal (IRXCLK) 720. The register 714 may receive the first state transition signal (SI) and outputs the registered instance of the first state transition signal (S), where the register 714 is triggered based on the delayed instance of the first state transition signal (IRXCLK) 720.

As can be appreciated from the timing diagram 750, the small delay P 772 introduced (e.g., by a flip flop circuit) provides more margins for setup time between symbols.

The following definitions are used in the timing diagram 750 signal:

-   -   t_(sym): one symbol cycle period,     -   t_(SU): setup time of SI for the registers 714 referenced to the         rising (leading) edge of IRXCLK 720,     -   t_(HD): hold time of SI for the registers 714 referenced to the         falling (trailing) edge of IRXCLK 720,     -   td_(NE): propagation delay of the comparator 702,     -   td_(RST): reset time of the set-reset register 704 from the         rising (leading) edge of IRXCLK 720,     -   td_(1S): propagation delay of the one-shot logic gate 706.

Initially, signals SI and S hold the previous symbol value Sym0 752. Signals NE, NEFLT, and IRXCLK are zero. When a new symbol value Sym1 756 is being received, it causes signal SI to start changing its value. The SI value may be different from Sym1 756 (valid data) due to the possibility of receiving intermediate or indeterminate states 754 of the signal transition (from Sym0 to Sym1) that may be caused, for example, by inter-wire skew, over/under shoot, cross-talk, etc.

The NE signal becomes high as soon as the comparator 702 detects different value between SI and S, and that asynchronously sets the set-reset register 704 output, NEFLT signal, high after td_(NE), which hold its high state until it is reset by a high state of IRXCLK 720 which will arrive approximately a Delay S period 770 caused by Delay S (the second delay device 710) after rising of NEFLT signal.

The intermediate states at SI (invalid data) may contain a short period of symbol value Sym0 752 causing the comparator 702 output NE signal to turn back low for short period (spikes 762 in the NE signal). The low state of the NE signal will not affect the set-reset register 704 output, NEFLT signal, since the set-reset register 704 effectively filters out spikes on the NE signal before outputting the NEFLT signal.

The one-shot circuit (e.g., logic gate 706 with flip-flop based circuit 708) generates high state on its output, NE1SHOT signal, after td1S from rising edge of NEFLT signal, and holds the NE1SHOT signal at a high state for the Delay P period 772 before turns it to a low state.

The high state of NE1SHOT signal propagates to the IRXCLK signal 720 after a Delay S period 770 caused by Delay S (the second delay device 710). The high state of IRXCLK signal 720 resets the set-reset register 704 output, NEFLT signal, to low after td_(RST). The high state of IRXCLK signal 720 also enables the register 714 for the SI signal value to be output to S signal. The comparator 702 detects when the S signal (symbol Sym1 760) and matches the symbol Sym1 756 of the SI signal, and turns its output, the NE signal, to low. The low state of NE1SHOT signal propagates to the IRXCLK signal 720 after a Delay S period 770 caused by Delay S (the second delay device 710).

When a new symbol value Sym2 752 is being received, it causes the SI signal to start changing its value to the next symbol Sym2 758 after t_(HD) from the last falling (trailing) edge 768 of IRXCLK signal 720. The timing constraint for the symbol cycle period t_(SYM) may be as follows:

-   -   i) td_(NE+td) _(1S)+Delay S+Delay P+t_(HD<t) _(SYM).

More specifically, the symbol cycle time t_(SYM) must be greater than total of: a Delay period S, a Delay Period P, t_(HD), td_(NE), td_(1S) and td_(RST). If the total of these six time periods exceeds the t_(SYM) period, the trailing edge of IRXCLK overlaps the next symbol cycle, disabling the NEFLT signal from being set for the overlapping period. Note that the amount of overlapping period accumulates cycle by cycle and eventually results in an extra IRXCLK pulse in one symbol cycle. The timing constraint for the setup time t_(SU) may be as follows:

-   -   i) Max. skew spec+t_(SU)<Delay S.     -   b) More specifically, the delay period S must be less than the         setup time t_(SU) plus the maximum skew.

FIG. 8 is a diagram 800 that illustrates timing associated with open-drain transistors as described in relation to the clock recovery circuit 700 depicted in FIG. 7. A first transition 804 (low-to-high transition), beginning at time 802, illustrates a slow-rise time attributable to a pull-up on an open-drain transistor driver. A second transition 806 (high-to-low transition) is faster and attributable to a switched-on transistor driver. In this example, valid clock timing can be extracted because at least one negative transition occurs in the wires 703 (FIG. 7). For example, clock timing can be reliably extracted using transitions 808 and 810 from different wires 703 to generate subsequent clocks of a receiver clock, assuming that any delayed effect arising from slow transition (e.g., long rise time on the first transition 804) can be suppressed.

FIG. 9 is a diagram 900 that illustrates timing associated with open-drain transistor drivers. Here, clock timing relies on a single negative-to-positive or low-to-high transition 904 (e.g., rising edge) that is detected (at low-to-high transition 902) after a significant delay 924. As a result of the delayed detection of the rising transition 902, the receive clock extracted by a clock recovery circuit 700 may be disrupted and symbols may be missed due to incorrect sampling time. A stream of output symbols TX SO [1:0] 918 includes a first symbol 906 and a second symbol 908, where each symbol 906/908 is transmitted within a symbol transmission cycle. Here, TX S[0] indicates bit 0 of S[1:0]. A receiver buffer detects the signal rising transition 902 late in the first symbol 906 period because of the slow voltage transition 904. The NE (not equal) signal 910 and then NE1SHOT pulse 912 is generated much late time in the symbol cycle, after delay S time from that point IRXCLK is generated. It is quite probable that the IRXCLK is generated in the next symbol timing (i.e., during the second symbol 908) due to the extra delay. This may cause, for example, the IRXCLK pulse 914 to sample the signal SI of next cycle (i.e., for the second symbol 908) instead of the intended symbol 906 due to excessive delay. That is, detection of a transition 926 is missed because it occurs during a “Delay S” period of the previous transition so NEFLT has not been reset to 0. Missing this symbol transition 926 causes the receiver clock cycle 928 and 930 to be missed. The possibility of missing symbol transitions makes the recovered clock unpredictable and, consequently, unusable.

FIG. 10 illustrates a timing diagram 1000 in which the rise time delay 924 of FIG. 9 may be accommodated by decreasing a frequency of operation of the data link illustrated in FIG. 1. By slowing down the symbol rate/frequency (i.e., extending the symbol period), the first symbol 906 may be sampled rather than the next symbol 908. However, the approach of decreasing frequency is unsatisfactory because it degrades performance of the interface (i.e., slows down data throughput).

Exemplary Clock Data Recovery Circuit with Reliable Symbol Transition Sensing

FIG. 11 is a diagram illustrating the use of a plurality of CDR circuits 1101 and 1102 to generate reliable timing in accordance with certain aspects. A CDR circuit 1101/1102 may be provided for every wire in the interface, and thus permitting clock/timing extraction for a single wire. Each CDR circuit 1101/1102 is configured to generate a pulse, which is aligned relative to a transition on an input (SCL line 1104). An exclusive-OR logic 1106 compares a change in state of the input (SCL line 1104) with the prior state maintained by a hold register 1130 and produces an output (NE) indicating whether a difference is detected. The NE signal is generated when the current state is not equal to a registered copy of the previous state (i.e., comparison of current symbol SI and previous symbol SX of a single signal line, SCL line 1104 or SDA line). The output of the exclusive-or logic 1106 sets a set-reset register 1108 to record the transition. The output of the set-reset register 1108 is gated with an inverted delayed version of itself at gate 1112, to produce a one-shot pulse (NE1SHOT[0]). The inverted delayed version of the output of the set-reset register 1108 is an output of a flip-flop circuit 1110.

Two “Delay S” are used for each CDR circuit 1101/1102. A first delay circuit 1114 (Delay S10) is used for slow rising signals (i.e., low-to-high transitions), and a second delay circuit 1120 (Delay S20) is used for fast falling signals (i.e., high-to-low transitions). That is, the slow rising signals (i.e. low-to-high transitions) are exposed to an overall shorter delay (first delay circuit 1114) while the faster falling signals (i.e., high-to-low transitions) are exposed to a longer overall delay (i.e., total delay of the two delay circuits 1114 and 1120). Consequently, on a rising transition (low-to-high transition), the NE1SHOT[0] pulse is delayed by a time determined by the first delay circuit 1114 to provide a resultant pulse 1116 that enables reliable sampling of the next symbol after a rising transition. On a falling transition (high-to-low transition), the pulse 1116 is further delayed by the second delay circuit 1120, which is selected to match timing based on the rising edges (e.g., the second delay circuit 1120 is selected to extend the falling transitions to match the rising transitions).

Each CDR circuit 1101/1102 comprises an additional, second delay circuit 1120 that operates to normalize the timing derived from rising (low-to-high) and falling (high-to-low) transitions. In particular, second delay circuit 1120 delays pulses 1116 generated by falling transitions (e.g., high-to-low transitions). The direction of the transition (e.g., low-to-high or high-lo-low) is known from the prior state of the wire (e.g., SCL line 1104), indicated by register 1126, which maintains a copy of the prior state. If the wire was at a high level, then a falling transition (i.e., high-to-low transition) will be the next detected transition and the gate 1118 is controlled to enable the pulse 1116 generated based on the transition to be provided to a second delay circuit 1120. Additionally, a multiplexer 1124 is used to select timing 1122 generated by the second delay circuit 1120 as the next receive clock when the transition is falling (i.e., high-to-low transition). If the prior signal state is at a low level, the operation of second delay circuit 1120 is disabled by operation of the gate 1118 and the multiplexer 1124 selects pulses 1116 output by the first delay circuit 1114. The second delay circuit 1120 may be programmed or configured to introduce a delay for high-to-low transitions (e.g., negative or falling transitions) that is equivalent to the delay caused by slower rising low-to-high transition. For instance, such delay for high-to-low transitions may be approximately equal to the difference between the rise time for a low-to-high transition and the fall time for a high-to-low transition.

A system receive clock (RXCLK 1134) may be obtained using a clock aggregation circuit 1132 that aggregates and/or combines the receive clocks IRXCLK[0] and IRXCLK[1] generated by all CDRs 1101/1102 to generate the RXCLK 1134.

FIG. 12 is a timing diagram 1200 illustrates receive clock timing generated from a signal received from a single wire in a multi-wire open-drain link using the CDR circuit 1101 of FIG. 11. In the example, a receive clock may be generated with nearly equal timing for both rising transitions and falling transitions.

With further reference to FIG. 11, receiver CDR circuits 1101/1102 may be constructed from CMOS single-ended receivers that receive data encoded as symbols on an N-wire channel. Register 1130 stores the state of each wire at each IRXCLK[0] rising edge and generates previous state information for comparison by exclusive-or logic 1106. Delay circuits 1114 and 1120 may be configured to obtain reliable clock transitions positioned to enable proper sampling of signal states received from wires (SCL line 1104). The delay circuits 1114 and 1120 are serially deployed and selectively coupled to create a shorter delay for slow rising signal, and a longer delay for fast falling signal. In particular, the second delay circuit 1120 is added to the serial chain of delays when a transition is associated with a fast falling signal. The IRXCLK clocks generated by a plurality of CDR circuits 1101/1102 are aggregated by the clock aggregation circuit 1132 to generate single-rate recovered receiver clock (RXCLK 1134).

FIG. 13 is a simplified block schematic illustrating an example of a programmable delay circuit 1300 that may be used to implement one or more of delay circuits 1114, 1120, and 1138 within a CDR circuit. The circuit 1300 implements a down counter that filters pulses. A delay select signal or value DELSEL may be fixed or programmable. A first multiplexer 1302 is enabled by an input I goes high, it starts a down counter. An n-bit flip-flop 1304 that holds the count value. A second multiplexer 1308 serves to decrease the count by 1 until the counter reaches 0. Then, a comparator 1310 compares the output count to zero and outputs Q=1 if the counter is equal to zero. Note that an AND gate 1006 causes the second multiplexer to stop counting down when zero is reached and then rolls over to all binary 1s (“1 . . . 111”).

The diagram 1320 further illustrates that multiple pulses may also be filtered by the circuit 1300. For instance, if a first pulse 1322 starts the down counter, the occurrence of the second pulse 1324 causes the down counter to reset to the DELSEL value and restart. This effectively filters out unwanted multiple pulses and outputs a single pulse.

FIG. 14 illustrates the receive clock aggregation and sampling circuit (see clock aggregation circuit 1132 of FIG. 11) along with a corresponding timing diagram 1400. FIG. 14 illustrates an instance when delays for different CDR circuits 1101/1102 generate misaligned receive clocks 1410 and 1412, which can cause excess clock pulses 1402 and 1404. These pulses 1402 and 1404 may be filtered and/or combined by use of a third delay circuit 1138 (Delay RX). The receiver clock (RXCLK 1134) is generated by aggregating two clocks 1410 and 1412 (i.e., IRXCLK[0] and IRXCLK[1]) and taking one shot from the trailing pulse of the OR-ed IRXCLKs 1414, delaying by the delay circuit 1138 and a flip flop 1136. The received symbol SX may have some intermediate value between two symbols due to unmatched delays between the SCL CDR circuit 1101 and the SDA CDR circuit 1102, so the symbol SX is sampled a delay RX after each symbol boundary of SX when SX value is stable.

FIG. 15 illustrates a method 1500 for calibrating the timing of CDR circuits 1101/1102 used for calibration of one or more of delay circuits 1114, 1120, and 1138 of FIG. 11. This method 1500 may serve to calibrate the clock signals from a plurality of CDRs so that they reliably overlap and thereby avoid generation of multiple pulses on a receive clock (IRXCLK 1128) within a symbol interval.

FIG. 16 illustrates logic circuits used to perform the calibration of one or more of delay circuits using the method of FIG. 15. This example illustrates a first logic circuit 1600 a that serves to calibrate for a first delay or interval used by a CDR circuit (e.g., delay circuit 1114 in FIG. 11). A second logic circuit 1600 b (or the first logic circuit 1600 a) may serve to calibrate for a second delay or interval used by the CDR circuit (e.g., delay circuit 1120 in FIG. 11). Similarly, the delays for other CDR circuits (e.g., for different wires) may be calibrated using logic circuit(s) 1602 a/1602 b.

FIG. 17 includes a timing diagram 1700 illustrating an implementation of a calibration circuit (e.g., logic circuit 1600 a and logic circuit 1600 b) for calibrating the delay circuits 1114, 1120 and/or 1138 of FIG. 11. In one example, the delay circuits 1114 and 1120 are calibrated to adjust timing of clock signals generated on rising and falling edges of an input signal (SCL line 1104).

In the example, calibration commences by providing a first falling transition (high-to-low transition). An initial calibration delay may be configured for the combination of delay circuits 1114 and 1120. The IRXCLK 1128 generated by the CDR circuit 1101 can be expected to produce a pulse after the first (falling) transition that reflects the delay of the first delay circuit 1114, which applies a delay on both falling transitions (i.e., high-to-low transitions) and rising transitions (i.e., low-to-high transitions). In one example, one or more of the delays associated with delay circuits 1114 and 1120 are calibrated during the calibration process based on observed differences in delays corresponding to the difference between fall time in falling transitions (high-to-low transitions) and rise time in rising transitions (low-to-high transitions) of the signal wire. The relationship 1702 between the end of the calibration delay and the arrival of the pulse associated with the first transition is examined to determine whether the calibration delay is to be increased or decreased by a number of delay clock cycles. The calibration delay is then modified as needed and used to program the delay circuit 1114.

A second falling transition (high-to-low transition) may also be provided as part of the calibration process. The second delay circuit 1120 is enabled for the second falling transition (high-to-low transition) when open-drain link delays between an SCL CDR circuit 1101 and an SDA CDR circuit 1102, so the symbol SX is sampled delay RX after each symbol boundary of SX when SX value is stable.

The relationship 1704 between the end of the calibration delay and the arrival of a pulse on the clock IRXCLK[0] 1128 may be used to further adjust the calibration delay value. This further adjusted value may then be used to program the second delay circuit 1120, and normal operation can be established.

Calibration may be performed after power-on events or when changes in interface characteristics require recalibration. For example, changes in ambient temperature may affect the RC constant associated with the interface wires (SCL line 1104), including variations in pull-up resistance values.

During calibration, the transmitter may be overridden to produce a calibration signal pattern, comprising a first (rising) transition of logic 0 to logic 1 (i.e., low-to-high transition), followed by a second (falling) transition from logic 1 to logic 0 transition (i.e., high-to-low transition). The transmitter may be placed in an offline mode and a calibration circuit 366 (see FIG. 3) may introduce a calibration signal through a gate 370 in receive device 362′ (FIG. 3). A reference counter may be initialized at each transition in the calibration signal. For example, in a first calibration step, the reference counter may be used to calibrate the delay circuit 1114, whereby the reference counter is expected to expire when a pulse is expected after a positive transition, as indicated by the relationship 1702 shown in FIG. 17. The delay circuit 1114 may be calibrated at the conclusion of the first step by adding any remaining value in the reference counter to the programmed delay for delay circuit 1114, where the reference counter has a signed value. In a second step, the reference counter may be used to calibrate the delay circuit 1120, whereby the reference counter is expected to expire when a pulse is expected after a negative transition is detected and after the delay introduced by the delay circuit 1120, as indicated by the relationship 1704 shown in FIG. 17. Delay circuit 1120 may be calibrated at the conclusion of the second step by adding any remaining value in the reference counter to the delay programmed in the delay circuit 1120, where the reference counter has a signed value time.

FIG. 18 is a diagram 1800 illustrating an example of a hardware implementation for an apparatus employing a processing system 1814. The processing system 1814 may be a consumer or generator of data transmitted on a multi-wire open-drain link with symbol transition based clocking. In one example, the processing system 1814 may be configured to calibrate the delay circuits 1114 and 1120 as described in relation to FIG. 11. The processing system may configure other aspects of the multi-wire open-drain link, including a data rate of the multi-wire open-drain link.

The processing system 1814 may be implemented with a bus architecture, represented generally by the bus 1808. The bus 1808 may include any number of interconnecting buses and bridges depending on the specific application of the processing system 1814 and the overall design constraints. The bus 1808 links together various circuits including one or more processors and/or hardware modules, represented by the processor 1804, the modules 1824, 1826, 1828, 1830 and 1832 and the computer-readable medium 1806. The bus 1808 may also link various other circuits such as timing sources, peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further.

The processing system 1814 may be coupled to a transceiver 1810. The transceiver 1810 provides a means for communicating with various other apparatus over a transmission medium. The processing system 1814 includes a processor 1804 coupled to a computer-readable medium 1806. The processor 1804 is responsible for general processing, including the execution of software stored on the computer-readable medium 1806. The software, when executed by the processor 1804, causes the processing system 1814 to perform the various functions described supra for any particular apparatus. The computer-readable medium 1806 may also be used for storing data that is manipulated by the processor 1804 when executing software. The processing system further includes at least one of the modules 1824, 1826, 1828, 1830 and 1832. The modules may be software modules running in the processor 1804, resident/stored in the computer-readable medium 1806, one or more hardware modules coupled to the processor 1804, or some combination thereof.

In one configuration, the apparatus includes means 1824 for detecting transitions on a signal wire, means 1826 for generating a pulse in response to detection of a transition, means 1828 for selectively applying a delay to the pulse based on the type of transition detected, means 1830 for combining pulses generated for multiple wires, and means 1832 for calibrating the delay. The aforementioned means may be one or more of the aforementioned modules of the apparatus 1802 and/or the processing system 1814 of the apparatus 1802 configured to perform the functions recited by the aforementioned means.

FIG. 19 illustrates a method for reliably generating a clock signal from symbol transitions. A transition in a signal received from a communication interface is determined, ascertained, and/or sensed 1902. A clock pulse responsive to the transition is generated 1904. The clock pulse is delayed by a preconfigured first interval (first delay) if the transition is in a first direction 1906. If the transition is in a second direction, the method may delay the clock pulse by a preconfigured second interval (second delay) 1908. In one example, where the first direction is a rising transition and the second direction is a falling transition, the second interval may be selected so that a clock pulse fall time plus the first interval plus the second interval are approximately equal to a clock pulse rise time plus the first interval.

The clock pulse may restart if a different clock pulse is received and the delay of the clock pulse has not been completed. In one example, the preconfigured first and/or second intervals may be configured based on a rise time and a fall time associated with the communication interface, and the rise time corresponds to a rise time associated with an open-drain transistor. For instance, the preconfigured first and/or second intervals may be selected to cause the clock pulse to occur when a symbol is transmitted on the communication interface, thereby permitting the symbol to be reliably sampled. In another instance, the preconfigured second interval may be selected to match a delay in detecting the transition attributed to the clock pulse rise time. The preconfigured first interval may be selected to match a delay in detecting the transition attributed to a clock pulse fall time.

The method may further include aggregating the clock pulse with at least one additional clock pulse generated in response to the transition 1910. As illustrated in clock aggregation circuits 1132 (FIG. 11 and FIG. 14), the clock pulses from two or more different CDRs may be aggregated. Additionally, the method comprises calibrating the preconfigured first and/or second intervals 1912.

In one example, calibrating the preconfigured first and/or second intervals may include: (a) providing first and second calibration transitions that are in different directions from one another; (b) measuring respective delays associated with clock pulses generated for the first and second calibration transitions; and/or (c) modifying the preconfigured first and/or second intervals to minimize a difference in the respective delays. Modifying the preconfigured first and/or second intervals may include: (a) adjusting a programmed delay of a first delay circuit based on a measured delay associated with a clock pulse generated after the first calibration transition; and/or (b) adjusting a programmed delay of a second delay circuit based on a measured delay associated with a clock pulse generated after the second calibration transition. The respective delays are measured using a timer that reflects a desired delay associated with clock pulses generated for either calibration transition.

It is understood that the specific order or hierarchy of steps in the processes disclosed is an illustration of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged. The accompanying method claims present elements of the various steps in a sample order, and are not meant to be limited to the specific order or hierarchy presented.

The previous description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects. Thus, the claims are not intended to be limited to the aspects shown herein, but is to be accorded the full scope consistent with the language claims, wherein reference to an element in the singular is not intended to mean “one and only one” unless specifically so stated, but rather “one or more.” Unless specifically stated otherwise, the term “some” refers to one or more. All structural and functional equivalents to the elements of the various aspects described throughout this disclosure that are known or later come to be known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be encompassed by the claims. Moreover, nothing disclosed herein is intended to be dedicated to the public regardless of whether such disclosure is explicitly recited in the claims. No claim element is to be construed as a means plus function unless the element is expressly recited using the phrase “means for.” 

What is claimed is:
 1. A method for generating a clock signal, comprising: detecting a transition between symbols received from a multi-wire communication interface; generating a clock pulse when the transition between symbols affects state of a first signal received from a first wire of the multi-wire communication interface; using one or more delay circuits to delay the clock pulse by a preconfigured first interval when the transition between symbols causes a rising edge in the first signal; using the one or more delay circuits to delay the clock pulse by a preconfigured second interval when the transition between symbols causes a falling edge in the first signal; and aggregating the clock pulse with at least one additional clock pulse generated in response to the transition between symbols.
 2. The method of claim 1, wherein the preconfigured first interval or the preconfigured second interval is selected to cause the clock pulse to occur when a symbol is transmitted on the communication interface, thereby permitting the symbol to be reliably sampled.
 3. The method of claim 1, wherein the preconfigured first interval or the preconfigured second interval is configured based on a difference between a rise time and a fall time of the first signal, the difference being associated with an open-drain transistor.
 4. The method of claim 3, wherein the preconfigured second interval is selected to match a first delay that is associated with the rise time.
 5. The method of claim 4, wherein the preconfigured first interval is selected to match a second delay that is associated with the fall time.
 6. The method of claim 1, wherein the at least one additional clock pulse comprises a pulse generated when the transition between symbols affects state of a second signal received from a second wire of the multi-wire communication interface.
 7. The method of claim 1, further comprising calibrating the preconfigured first interval or the preconfigured second interval.
 8. The method of claim 1, further comprising: providing a rising calibration transition on the communication interface; generating a first calibration clock pulse responsive to the rising calibration transition; calibrating the first interval based on a difference in timing between the rising calibration transition and the first calibration clock pulse; providing a falling calibration transition on the communication interface; generating a second calibration clock pulse responsive to the falling calibration transition; and calibrating the second interval based on a difference in timing between the falling calibration transition and the second calibration clock pulse.
 9. The method of claim 8, further comprising: adjusting a programmed delay of a first delay circuit based on the difference in timing between the rising calibration transition and the first calibration clock pulse; and adjusting a programmed delay of a second delay circuit based on the difference in timing between the falling calibration transition and the second calibration clock pulse.
 10. The method of claim 8, further comprising: using a timer that reflects a desired delay associated with the first calibration clock pulse and the second calibration clock pulse.
 11. An apparatus for generating a clock signal, comprising: means for detecting a transition between symbols received from a multi-wire communication interface; means for generating a clock pulse when the transition between symbols affects state of a first signal received from a first wire of the multi-wire communication interface; means for delaying the clock pulse, including one or more delay circuits configured to: delay the clock pulse by a preconfigured first interval when the transition between symbols causes a rising edge in the first signal; and delay the clock pulse by a preconfigured second interval when the transition between symbols causes a falling edge in the first signal; and means for aggregating the clock pulse with at least one additional clock pulse generated in response to the transition between symbols.
 12. The apparatus of claim 11, wherein the preconfigured first interval or the preconfigured second interval is selected to cause the clock pulse to occur when a symbol is transmitted on the communication interface, thereby permitting the symbol to be reliably sampled.
 13. The apparatus of claim 11, wherein the preconfigured first interval is calibrated based on a difference in timing between the clock pulse and the transition between symbols when the transition between symbols causes a rising edge in the first signal, and wherein the preconfigured second interval is calibrated based on a difference in timing between the clock pulse and the transition between symbols when the transition between symbols causes a falling edge in the first signal.
 14. The apparatus of claim 13, wherein the difference in timing between the clock pulse and the transition between symbols includes a rise time associated with an open-drain transistor.
 15. The apparatus of claim 13, wherein the difference in timing between the clock pulse and the transition between symbols includes a fall time associated with an open-drain transistor.
 16. The apparatus of claim 11, wherein the at least one additional clock pulse comprises a pulse generated when the transition between symbols affects state of a second signal received from a second wire of the multi-wire communication interface.
 17. The apparatus of claim 11, further comprising means for calibrating the preconfigured first interval or the preconfigured second interval.
 18. The apparatus of claim 17, wherein the means for calibrating the preconfigured first interval or the preconfigured second interval is configured to: provide a rising calibration transition on the communication interface; generate a first calibration clock pulse responsive to the rising calibration transition; calibrate the first interval based on a difference in timing between the rising calibration transition and the first calibration clock pulse; provide a falling calibration transition on the communication interface; generate a second calibration clock pulse responsive to the falling calibration transition; and calibrate the second interval based on a difference in timing between the falling calibration transition and the second calibration clock pulse.
 19. The apparatus of claim 18, wherein the means for calibrating the preconfigured first interval or the preconfigured second interval is configured to: adjust a programmed delay of a first delay circuit based on the difference in timing between the rising calibration transition and the first calibration clock pulse; and adjust a programmed delay of a second delay circuit based on the difference in timing between the falling calibration transition and the second calibration clock pulse.
 20. The apparatus of claim 18, the means for calibrating the preconfigured first interval or the preconfigured second interval includes a timer that reflects a desired delay associated with the first calibration clock pulse and the second calibration clock pulse.
 21. An apparatus for generating a clock signal, comprising: one or more delay circuits; and a processing system configured to: detect a transition between symbols received from a multi-wire communication interface; generate a clock pulse when the transition between symbols affects state of a first signal received from a first wire of the multi-wire communication interface; use the one or more delay circuits to delay the clock pulse by a preconfigured first interval when the transition between symbols causes a rising edge in the first signal; use the one or more delay circuits to delay the clock pulse by a preconfigured second interval when the transition between symbols causes a falling edge in the first signal; and aggregate the clock pulse with at least one additional clock pulse generated in response to the transition between symbols.
 22. The apparatus of claim 21, wherein the preconfigured first interval or the preconfigured second interval is selected to cause the clock pulse to occur when a symbol is transmitted on the communication interface, thereby permitting the symbol to be reliably sampled.
 23. The apparatus of claim 21, wherein the preconfigured first interval is calibrated based on a difference in timing between the clock pulse and the transition between symbols when the transition between symbols causes a rising edge in the first signal, and wherein the preconfigured second interval is calibrated based on a difference in timing between the clock pulse and the transition between symbols when the transition between symbols causes a falling edge in the first signal.
 24. The apparatus of claim 23, wherein the difference in timing between the clock pulse and the transition between symbols includes a rise time associated with an open-drain transistor, and wherein the difference in timing between the clock pulse and the transition between symbols includes a fall time associated with an open-drain transistor.
 25. The apparatus of claim 21, wherein the at least one additional clock pulse comprises a pulse generated when the transition between symbols affects state of a second signal received from a second wire of the multi-wire communication interface.
 26. The apparatus of claim 21, wherein the processing system is configured to calibrate the preconfigured first interval or the preconfigured second interval.
 27. The apparatus of claim 21, wherein the processing system is configured to: provide a rising calibration transition on the communication interface; generate a first calibration clock pulse responsive to the rising calibration transition; provide a falling calibration transition on the communication interface; generate a second calibration clock pulse responsive to the falling calibration transition; determine a difference in timing between the first calibration clock pulse and the second calibration clock pulse; and modify at least one preconfigured interval by an amount calculated to minimize the difference in timing between the first calibration clock pulse and the second calibration clock pulse.
 28. The apparatus of claim 27, wherein the processing system is configured to: adjust a programmed delay of a first delay circuit based on a measured delay associated with the first calibration clock pulse; and adjust a programmed delay of a second delay circuit based on a measured delay associated with the second calibration clock pulse.
 29. The apparatus of claim 27, wherein the processing system is configured to modify the at least one preconfigured interval using a timer that reflects a desired delay associated with the first calibration clock pulse and the second calibration clock pulse.
 30. A non-transitory processor-readable storage medium having one or more instructions which, when executed by at least one processing circuit, cause the at least one processing circuit to: detect a transition between symbols received from a multi-wire communication interface; generate a clock pulse when the transition between symbols affects state of a first signal received from a first wire of the multi-wire communication interface; use one or more delay circuits to delay the clock pulse by a preconfigured first interval when the transition between symbols causes a rising edge in the first signal; use the one or more delay circuits to delay the clock pulse by a preconfigured second interval when the transition between symbols causes a falling edge in the first signal; and aggregate the clock pulse with at least one additional clock pulse generated in response to the transition between symbols. 